import Vue from 'vue'
import App from './App.vue'
import ElementUI from  'element-ui';
import router from './router'
import Router from 'vue-router'
import 'element-ui/lib/theme-chalk/index.css';
import echarts from 'echarts'
Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.prototype.$echarts = echarts;
const originalPush = Router.prototype.push
Router.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
}

 

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
